﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabMeasurement_Detail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls"
        xmlns:Langs="clr-namespace:ViCode_LeVi.Langs"
        xmlns:Data="clr-namespace:ViCode_LeVi.Data"
        xmlns:xcdg="clr-namespace:Xceed.Wpf.Controls;assembly=Xceed.Wpf.Controls"
             >
    <vmcontrol:VMRootControl  BorderThickness="1" >
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Title_Text" Margin="2"/>
        <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="5" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding Name}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_GoalOutCome_Text" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine  Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Text="{Binding Goal}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Procedure_Text" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Text="{Binding Procedure}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Duration_Text" Margin="2"/>
        <vmcontrol:VMTextBox  Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding Duration}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="2" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Status_Text" Margin="2"/>
        <vmcontrol:VMComboBox_Measurement_Status  Grid.Column="3" Grid.Row="3" Grid.ColumnSpan="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" SelectedValue="{Binding Status}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="4" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Start_Text" Margin="2"/>
        <xcdg:DatePicker Grid.Column="5" Grid.Row="3" Grid.ColumnSpan="5" VerticalAlignment="Center" HorizontalAlignment="Left" SelectedDate="{Binding StartedDate, Mode = TwoWay}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_Expenses_Text" Margin="2"/>
            <!--<StackPanel  Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" >
                <vmcontrol:VMTextBlock VerticalAlignment="Center" HorizontalAlignment="Right" Text="Expenses/" Margin="2"/>
                <vmcontrol:VMTextBlock VerticalAlignment="Center" HorizontalAlignment="Right" Text="Investment volume" Margin="2"/>
            </StackPanel>-->
                <vmcontrol:VMTextBox_MultiLine  Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Text="{Binding Expenses}" Margin="2"/>

        <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_ExpertedBenefits_Text" Margin="2"/>
        <vmcontrol:VMTextBox_MultiLine Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Text="{Binding ExpectedBenefits}" Margin="2"/>
            <vmcontrol:VMTextBlockExt_ControlTextInfoInData Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Right" TextPath="Measurement_ResponsiblePerson_Text" Margin="2"/>
            <vmcontrol:VMTextBox Grid.Column="1" Grid.Row="7" Grid.ColumnSpan="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Text="{Binding ResponsiblePerson}" Margin="2"/>

            <StackPanel Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="6" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Name="Button_OK" Content="{Binding Source={x:Static Langs:ControlTextInfo.Intance}, Path=Button_Content_OK}" Margin="2"/>
            <Button Name="Button_Cancel" Content="{Binding Source={x:Static Langs:ControlTextInfo.Intance}, Path=Button_Content_Cancel}" Margin="2"/>
        </StackPanel>
    </Grid>
        </vmcontrol:VMRootControl>
</UserControl>
